package com.xx.service;

import com.xx.entity.Auction;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.util.List;

public interface AuctionService {
    /**
     * 发布拍卖品
     * @return
     */
    public int save(Auction auction) throws IOException;
    /**
     * 修改拍卖品
     * @param auction
     * @return
     */
    public int update(Auction auction) throws IOException;

    /**
     * 根据id查询拍卖商品
     * @param auctionId
     * @return
     */
    public Auction getId(Integer auctionId) throws IOException;

    /**
     * 拍卖品列表
     * @return
     */
    public List<Auction>getAll() throws IOException;

    /**
     * 删除
     * @param auctionId
     * @return
     */
    public int delete(Integer auctionId) throws IOException;

    /**
     * 竞价在线拍卖系统用例9
     * @return
     */
    public List<Auction> getAuction() throws IOException;

    public List<Auction>getLike(String auctionName) throws IOException;
}
